<!DOCTYPE HTML>
<html>
    <head>
        <link rel="Stylesheet" type="text/css" href="/static/css/typo.css">
        <link rel="Stylesheet" type="text/css" href="/static/css/reset_typo.css">
        <link rel="Stylesheet" type="text/css" href="/static/css/tango.css">
        <link rel="Stylesheet" type="text/css" href="/static/css/style.css">
	<link href="/static/images/favicon.ico" mce_href="/static/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <title>sublime - thornbird的个人wiki</title>
        <meta name="keywords" content=""/>
        <meta name="description" content=""/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.js"></script>
<script language="javascript" type="text/javascript">
    var oddClick = true;
    $(document).ready(function() {
      $('#toggle-button').click(function() {
        $('#container').animate({
          width: oddClick? "100%":"60%",
        });
        $(this).text(oddClick? "窄版":"宽版");
        oddClick = !oddClick;
      });
    });
</script>

    </head>

    <body>
        <div id="container" class="typo">
            
    <div id="header">
        <div id="post-nav">
            <div id="toggle-button">宽版</div>
            
            <a href="/">Home</a> » <a href="/#编辑器">编辑器</a> » sublime
            
        </div>
    </div>
    <div class="clearfix"></div>
    <div id="content">
        <h4 id="_1">安装组件</h4>
<div class="hlcode"><pre><span class="n">Ctrl</span><span class="o">+</span><span class="err">\`</span> <span class="err">调出</span><span class="n">console</span>
</pre></div>


<p>使用Package Control组件安装</p>
<div class="hlcode"><pre><span class="err">`</span><span class="n">import</span> <span class="n">urllib</span><span class="p">.</span><span class="n">request</span><span class="p">,</span><span class="n">os</span><span class="p">;</span> <span class="n">pf</span> <span class="o">=</span> <span class="err">&#39;</span><span class="n">Package</span> <span class="n">Control</span><span class="p">.</span><span class="n">sublime</span><span class="o">-</span><span class="n">package</span><span class="err">&#39;</span><span class="p">;</span> <span class="n">ipp</span> <span class="o">=</span> <span class="n">sublime</span><span class="p">.</span><span class="n">installed_packages_path</span><span class="p">();</span> <span class="n">urllib</span><span class="p">.</span><span class="n">request</span><span class="p">.</span><span class="n">install_opener</span><span class="p">(</span> <span class="n">urllib</span><span class="p">.</span><span class="n">request</span><span class="p">.</span><span class="n">build_opener</span><span class="p">(</span> <span class="n">urllib</span><span class="p">.</span><span class="n">request</span><span class="p">.</span><span class="n">ProxyHandler</span><span class="p">())</span> <span class="p">);</span> <span class="n">open</span><span class="p">(</span><span class="n">os</span><span class="p">.</span><span class="n">path</span><span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="n">ipp</span><span class="p">,</span> <span class="n">pf</span><span class="p">),</span> <span class="err">&#39;</span><span class="n">wb</span><span class="err">&#39;</span><span class="p">).</span><span class="n">write</span><span class="p">(</span><span class="n">urllib</span><span class="p">.</span><span class="n">request</span><span class="p">.</span><span class="n">urlopen</span><span class="p">(</span> <span class="err">&#39;</span><span class="n">http</span><span class="o">:</span><span class="c1">//sublime.wbond.net/&#39; + pf.replace(&#39; &#39;,&#39;%20&#39;)).read())`</span>
</pre></div>


<h4 id="_2">快捷键</h4>
<p><code>Command/Ctrl+shift+f</code> 全局搜索/替换
<code>Command/Ctrl+shift+p</code> Command Palette</p>
<h4 id="_3">插件安装</h4>
    </div>

        </div>
        <div id="footer">
              <p>
                Copyright © 2012-2016 thornbird.
                Powered by <a href="http://simiki.org/" target="_blank">Simiki</a>.
                Theme by <a href="https://github.com/tankywoo/yasimple" target="_blank">YASimple</a>.
              </p>
                <p>Last Update 2016-07-28 17:00:33</p>
        </div>
    </body>
</html>